<div style="background-color: #FFF; overflow: hidden">
    <div title="{{$.lp.base}}" class="MWFTab">
        <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
            <tr>
                <td class="editTableTitle">{{$.lp.id}}:</td>
                <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
            </tr>
            <tr>
                <td class="editTableTitle">{{$.lp.name}}:</td>
                <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
            </tr>
            <tr>
                <td class="editTableTitle">{{$.lp.description}}:</td>
                <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
            </tr>
            <tr>
                <td class="editTableTitle">{{$.lp.readonly}}:</td>
                <td class="editTableValue">
                    <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
                    <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
                </td>
            </tr>
            <tr>
                <td class="editTableTitle">{{$.lp.separator}}:</td>
                <td class="editTableValue"><input type="text" name="splitStr" value="text{$.splitStr}" class="editTableInput"/></td>
            </tr>
            <tr>
                <td class="editTableTitle">{{$.lp.showSeparator}}:</td>
                <td class="editTableValue"><input type="text" name="splitShow" value="text{$.splitShow}" class="editTableInput"/></td>
            </tr>
            <tr>
                <td class="editTableTitle">{{$.lp.canSelectCount}}:</td>
                <td class="editTableValue"><input title="0 表示不限制数量" type="text" name="count" value="text{$.count}" class="editTableInput"/></td>
            </tr>
            <tr>
                <td class="editTableTitle">{{$.lp.showOptions}}:</td>
                <td class="editTableValue">
                    <input type="radio" name="showOptions" value="input" text{($.showOptions)!="focus"?'checked':''}/>{{$.lp.onInput}}
                    <input type="radio" name="showOptions" value="focus" text{($.showOptions)=="focus"?'checked':''}/>{{$.lp.onFocus}}
                </td>
            </tr>
            <tr>
                <td class="editTableTitle">{{$.lp.options}}:</td>
                <td class="editTableValue">
                    <input class="editTableRadio" onclick="if (this.checked){
                        $('text{$.pid}selectEditItemValues').setStyle('display', 'block');
                        $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemDynamic').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemView').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
                        $('text{$.pid}selectFirstOption').setStyle('display', 'none');
                    }" name="itemType" text{(!$.itemType || $.itemType=='values')?'checked':''} type="radio" value="values"/>{{$.lp.textValue}}
                    <input class="editTableRadio" onclick="if (this.checked){
                         $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
                         $('text{$.pid}selectEditItemScript').setStyle('display', 'block');
                         $('text{$.pid}selectEditItemDynamic').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemView').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
                        $('text{$.pid}selectFirstOption').setStyle('display', 'none');
                    }" name="itemType" text{($.itemType=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}
                    <input class="editTableRadio" onclick="if (this.checked){
                        $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemDynamic').setStyle('display', 'block');
                        $('text{$.pid}selectEditItemDict').setStyle('display', 'block');
                        $('text{$.pid}selectEditItemView').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
                        $('text{$.pid}selectFirstOption').setStyle('display', 'block');
                     }" name="itemType" text{($.itemType=='dynamic')?'checked':''} type="radio" value="dynamic"/>{{$.lp.dynamic}} <br/>
                    <input class="editTableRadio" onclick="if (this.checked){
                        $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
                         $('text{$.pid}selectEditItemDynamic').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemDict').setStyle('display', 'block');
                        $('text{$.pid}selectEditItemView').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
                        $('text{$.pid}selectFirstOption').setStyle('display', 'block');
                    }" name="itemType" text{($.itemType=='dict')?'checked':''} type="radio" value="dict"/>{{$.lp.dict}}
                    <input class="editTableRadio" onclick="if (this.checked){
                        $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
                         $('text{$.pid}selectEditItemDynamic').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemView').setStyle('display', 'block');
                        $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
                        $('text{$.pid}selectFirstOption').setStyle('display', 'block');
                    }" name="itemType" text{($.itemType=='view')?'checked':''} type="radio" value="view"/>{{$.lp.view}}
                    <input class="editTableRadio" onclick="if (this.checked){
                        $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
                         $('text{$.pid}selectEditItemDynamic').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemView').setStyle('display', 'none');
                        $('text{$.pid}selectEditItemStatement').setStyle('display', 'block');
                        $('text{$.pid}selectFirstOption').setStyle('display', 'block');
                    }" name="itemType" text{($.itemType=='statement')?'checked':''} type="radio" value="statement"/>{{$.lp.statement}}
                </td>
            </tr>
        </table>

        <div id="text{$.pid}selectEditItemValues" style="display: text{($.itemType=='values')?'block':'none'}" class="MWFArraylist" name="itemValues" title="{{$.lp.options}}"></div>
        <div id="text{$.pid}selectEditItemScript" style="display: text{($.itemType=='script')?'block':'none'}" class="MWFScriptArea" name="itemScript" title="{{$.lp.optionScript}} (S)"></div>
        <div id="text{$.pid}selectEditItemDynamic" style="display: text{($.itemType=='dynamic')?'block':'none'}">
            <div style="line-height: 20px;padding:5px;">
                //动态计算指每次输入的时候（出现可选列表）都会重新计算可选值<br/>
                //可以通过this.event.value 获取当前输入的值<br/>
                //需要通过 this.event.callback( options ) 将选项回传给组件<br/>
                if( ( this.event.value || "" ).indexOf("a") > -1 ){<br/>
                &nbsp;&nbsp;this.event.callback( [{text:"文本1", value:"aaa"}, {text:"文本2", value:"aa"}] )<br/>
                }else{<br/>
                &nbsp;&nbsp;this.event.callback( [{text:"文本3", value:"bbb"}, {text:"文本4", value:"bb"}] )<br/>
                }
            </div>
            <div class="MWFScriptArea" name="itemDynamic" title="{{$.lp.optionDynamicScript}} (S)"></div>
        </div>

        <div id="text{$.pid}selectFirstOption" style="display: text{(['dict','view','statement'].contains($.itemType))?'block':'none'}">
            <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
                <tr>
                    <td class="editTableTitle">{{$.lp.firstOptionEnable}}:</td>
                    <td class="editTableValue">
                        <input class="editTableRadio" onclick="if (this.checked){
                        $('text{$.pid}firstOptionTextTr').setStyle('display', '');
                    }" name="firstOptionEnable" text{($.firstOptionEnable)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
                        <input class="editTableRadio" onclick="if (this.checked){
                        $('text{$.pid}firstOptionTextTr').setStyle('display', 'none');
                    }" name="firstOptionEnable" text{(!$.firstOptionEnable)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
                    </td>
                </tr>
                <tr id="text{$.pid}firstOptionTextTr" style="display: text{($.firstOptionEnable)?'':'none'}">
                    <td class="editTableTitle">{{$.lp.firstOption}}:</td>
                    <td class="editTableValue"><input type="text" name="firstOption" value="text{$.firstOption}" class="editTableInput"/></td>
                </tr>
            </table>
        </div>
        <div id="text{$.pid}selectEditItemDict" style="display: text{($.itemType=='dict')?'block':'none'}" class="MWFDictionaryItemContainer">
            <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
                <tr>
                    <td class="editTableTitle">{{$.lp.dict}}:</td>
                    <td class="editTableValue">
                        <div class="MWFDictionaryNode" data-count=1 name="itemDict"></div>
                    </td>
                </tr>
                <tr>
                    <td class="editTableTitle">{{$.lp.dictPath}}:</td>
                    <td class="editTableValue">
                        <div class="MWFDictionaryItemNode" name="itemDictPath" data-dict="itemDict" title="{{$.lp.dict}}{{$.lp.dictPath}}"></div>
                    </td>
                </tr>
                <tr>
                    <td class="editTableValue" colspan="2">{{$.lp.dictKeyNote}}:</td>
                </tr>
                <tr>
                    <td class="editTableTitle">{{$.lp.valueKey}}:</td>
                    <td class="editTableValue">
                        <input type="text" name="dictValueKey" value="text{$.dictValueKey}" class="editTableInput"/>
                    </td>
                </tr>
                <tr>
                    <td class="editTableTitle">{{$.lp.textKey}}:</td>
                    <td class="editTableValue">
                        <input type="text" name="dictTextKey" value="text{$.dictTextKey}" class="editTableInput"/>
                    </td>
                </tr>
            </table>
        </div>
        <div id="text{$.pid}selectEditItemView" style="display: text{($.itemType=='view')?'block':'none'}" class="MWFQueryViewItemContainer">
            <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
                <tr>
                    <td class="editTableTitle">{{$.lp.view}}:</td>
                    <td class="editTableValue">
                        <div class="MWFQueryViewNode" data-count=1 name="itemView"></div>
                    </td>
                </tr>
                <tr>
                    <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
                    <td class="editTableValue">
                        <select class="MWFViewColumnSelect" name="viewValueColumn" style="max-width: 270px;"></select>
                    </td>
                </tr>
                <tr>
                    <td class="editTableTitle">{{$.lp.textColumn}}:</td>
                    <td class="editTableValue">
                        <select class="MWFViewColumnSelect" name="viewTextColumn" style="max-width: 270px;"></select>
                    </td>
                </tr>
            </table>
            <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
            <div class="MWFViewFilterWithTemplate"></div>
        </div>
        <div id="text{$.pid}selectEditItemStatement" style="display: text{($.itemType=='statement')?'block':'none'}" class="MWFQueryStatementItemContainer">
            <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
                <tr>
                    <td class="editTableTitle">{{$.lp.statement}}:</td>
                    <td class="editTableValue">
                        <div class="MWFQueryStatementNode" data-count=1 name="itemStatement"></div>
                    </td>
                </tr>
                <tr>
                    <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
                    <td class="editTableValue">
                        <select class="MWFStatementItemSelect" name="statementValueColumn" style="max-width: 270px;"></select>
                    </td>
                </tr>
                <tr>
                    <td class="editTableTitle">{{$.lp.textColumn}}:</td>
                    <td class="editTableValue">
                        <select class="MWFStatementItemSelect" name="statementTextColumn" style="max-width: 270px;"></select>
                    </td>
                </tr>
            </table>
            <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
            <div class="MWFStatementFilterWithTemplate" data-statement="itemStatement"></div>
        </div>

        <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
        <div class="MWFMaplist" name="inputStyles" title="{{$.lp.inputStyle}}"></div>
        <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>

        <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
            <tr>
                <td class="editTableTitle">{{$.lp.compute}}:</td>
                <td class="editTableValue">
                    <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
                    <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
                    <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
                </td>
            </tr>
        </table>
        <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>

        <div class="MWFValidation" name="validationConfig"></div>
        <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>

    </div>
    <div title="{{$.lp.section}}" class="MWFTab">
        <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
            <tr>
                <td class="editTableTitle">{{$.lp.enableSection}}:</td>
                <td class="editTableValue">
                    <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
                    <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
                </td>
            </tr>
        </table>

        <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
            <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
                <tr>
                    <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
                    <td class="editTableValue">
                        <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='unit' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>{{$.lp.handler}}<br/>
                        <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"  name="sectionBy" text{($.sectionBy=='unit')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
                        <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"  name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>{{$.lp.activityId}}<br/>
                        <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}"  name="sectionBy" text{($.sectionBy=='splitValue')?'checked':''} type="radio" value="splitValue"/>{{$.lp.splitValue}}<br/>
                        <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}"  name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}<br/>
                    </td>
                </tr>
            </table>
            <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
                <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
            </div>
        </div>
    </div>
    <div title="{{$.lp.event}}"  class="MWFTab">
        <div class="MWFEventsArea" name="events"></div>
    </div>
    <div title="HTML"  class="MWFTab">
        <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
    </div>
    <div title="JSON"  class="MWFTab">
        <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
    </div>
</div>
